//
//  UIApplicationShortcutItemManager.m
//  iOS Object
//
//  Created by 保密 on 2019/7/23.
//  Copyright © 2019年 XiaoHaiBao. All rights reserved.
//

#import "UIApplicationShortcutItemManager.h"

@implementation UIApplicationShortcutItemManager

+ (void)creatShortcutItemWithOptions:(NSDictionary *)launchOptions {
    
    /// 最多只能添加四个
    UIApplicationShortcutItem * item = [[UIApplicationShortcutItem alloc] initWithType:@"1" localizedTitle:@"分享" localizedSubtitle:@"分享副标题" icon:[UIApplicationShortcutIcon iconWithType:UIApplicationShortcutIconTypeShare] userInfo:@{@"text":@"安慕希 - 希腊风味酸奶"}];
    [UIApplication sharedApplication].shortcutItems = @[item];
    
}

@end
